/*----------------------------------------------------------------------------
* Copyright (C) 2023, KylinSoft Co., Ltd.All rights reserved.
* --------------------------------------------------------------------------- */

.monaco-workbench .part.toolbar {
	box-sizing: border-box;
	width: 100%;
	padding: 0 70px;
	overflow: hidden;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	user-select: none;
	-webkit-user-select: none;
	zoom: 1;
	/* prevent zooming */
	line-height: 22px;
	height: 22px;
	display: flex;
}

.monaco-workbench .part.toolbar>.toolbar-drag-region {
	top: 0;
	left: 0;
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: -1;
	-webkit-app-region: drag;
}

.monaco-workbench .part.toolbar>.toolbar-title {
	display: flex;
	align-items: center;
	height: 100%;
	margin-left: 5px;
	/* flex: 0 1 auto;
	font-size: 16px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	margin-left: auto;
	margin-right: auto;
	zoom: 1; prevent zooming */
}

.toolbar-title>.tool-item {
	/* padding: 0 4px 3px; */
	display: flex;
	align-items: center;
	height: 100%;
	/* position: relative; */
	margin: 3px 3px 0 3px;
}

.tool-item>.tool-item-icon {
	width: 24px;
	height: 24px;
	cursor: pointer;
	text-align: center;
	/* vertical-align: middle; */
	/* border:1px solid transparent; */
}

.tool-item>.tool-item-icon>.create-project {
	width: 24px;
	height: 24px;
	background-image: url('./createProject-light.svg');
	background-repeat: no-repeat;
	background-position: center;
}

.monaco-workbench.vs-dark .part.toolbar>.toolbar-title>.tool-item>.tool-item-icon>.create-project {
	background-image: url('./createProject-dark.svg');
}
.monaco-workbench.hc-light .part.toolbar>.toolbar-title>.tool-item>.tool-item-icon>.create-project {
	background-image: url('./createProject-light.svg');
}
.monaco-workbench.hc-black .part.toolbar>.toolbar-title>.tool-item>.tool-item-icon>.create-project {
	background-image: url('./createProject-dark.svg');
}

.tool-item>.tool-item-icon>.drawio {
	width: 24px;
	height: 24px;
	background-image: url('./drawio-light.svg');
	background-repeat: no-repeat;
	background-position: center;
}

.monaco-workbench.vs-dark .part.toolbar>.toolbar-title>.tool-item>.tool-item-icon>.drawio {
	background-image: url('./drawio-dark.svg');
}
.monaco-workbench.hc-light .part.toolbar>.toolbar-title>.tool-item>.tool-item-icon>.drawio {
	background-image: url('./drawio-light.svg');
}
.monaco-workbench.hc-black .part.toolbar>.toolbar-title>.tool-item>.tool-item-icon>.drawio {
	background-image: url('./drawio-dark.svg');
}

.tool-item-icon:hover {
	/* background: #4d4d4d; */
	border: 1px solid;
	border-radius: 2px;
	box-sizing: border-box;
}

.tool-item-icon:active {
	/* background: #303030; */
	border: 0px solid #6e6e6e;
	border-radius: 2px;
	box-sizing: border-box;
}

.tool-item-icon>.iconimg {
	width: 18px;
	height: 18px;
	/* vertical-align: middle; */
	display: inline-block;
}

/* Windows/Linux: Rules for custom title (icon, window controls)  */
.monaco-workbench.web .part.toolbar,
.monaco-workbench.windows .part.toolbar,
.monaco-workbench.linux .part.toolbar {
	padding: 0;
	height: 30px;
	line-height: 30px;
	justify-content: left;
	overflow: visible;
}

.monaco-workbench.web .part.toolbar>.window-title,
.monaco-workbench.windows .part.toolbar>.window-title,
.monaco-workbench.linux .part.toolbar>.window-title {
	cursor: default;
}

.monaco-workbench.linux .part.toolbar>.window-title {
	font-size: inherit;
}

.monaco-workbench.windows .part.toolbar>.resizer,
.monaco-workbench.linux .part.toolbar>.resizer {
	-webkit-app-region: no-drag;
	position: absolute;
	top: 0;
	width: 100%;
	height: 20%;
}

.monaco-workbench.windows.fullscreen .part.toolbar>.resizer,
.monaco-workbench.linux.fullscreen .part.toolbar>.resizer {
	display: none;
}
